import 'package:dio/dio.dart';
const leading='setMeal';

Future<Response<dynamic>> getAllSetMeals({required Dio dio}) async {
  Response<dynamic> response = await dio.post('/$leading/all');
  return response;
}

Future<Response<dynamic>> addSetMeal({
  required Map<String, dynamic> setMeal,
  required Dio dio,
}) async {
  Response<dynamic> response = await dio.post('/$leading/add', data: setMeal);
  return response;
}

Future<Response<dynamic>> updateSetMeal({
  required Map<String, dynamic> setMeal,
  required Dio dio,
}) async {
  Response<dynamic> response = await dio.post('/$leading/update', data: setMeal);
  return response;
}
